package com.tuozixuan.lang3.builder;

import org.apache.commons.lang3.builder.DiffResult;

public class DiffBuilderDemo {

	public static void main(String[] args) {
		Person a = new Person();
		a.setName("deniro");
		a.setAge(22);
		a.setSmoker(false);

		Person b = new Person();
		b.setName("jack");
		b.setAge(22);
		b.setSmoker(true);

		// result -> Person[name=deniro,smoker=false] differs from Person[name=jack,smoker=true]
		DiffResult<Person> result = a.diff(b);
		System.out.println("result -> " + result);
	}

}
